package Terminal;

import Commands.Command;

/**
 * Created with IntelliJ IDEA.
 * Authors: Henrique Alberto Rusa and Danilo Barbosa Porto
 * Date: 05/12/13
 *
 * Terminal Listener is an interface where the implementing classes will get when events on the terminal specified
 * on the adding method occurs.
 */
public interface TerminalListener {

    // Method to be implemented where the command occurred and the class has to process it
    public void onCommandType(Command evt);

    // Method to be implemented of the typed list command from the user
    public void list();

    // Method to be implemented of the typed create command from the user
    public void create(String filename);

    // Method to be implemented of the typed remove command from the user
    public void remove(String filename);

    // Method to be implemented of the typed remove command from the user
    public void removeDirectory(String folderName);

    // Method to be implemented of the typed read command from the user
    public void read(String filename);

    // Method to be implemented of the typed write command from the user
    public void write(String filename);

    // Method to be implemented of the typed clear command from the user
    public void clear();

    // Method to be implemented of the typed cd command from the user
    public void cd(String folderName);

    // Method to be implemented of the typed mkdir command from the user
    public void mkdir(String folderName);

    // Method to be implemented of the typed exit command from the user
    public void exit();
}
